﻿<Controls:SinacorWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    
    WindowStartupLocation="CenterScreen"
    WindowState="Maximized"
    Title="{DynamicResource Bovespa.Movimento.Label.ConsultaAssessores}"
	
	x:Class="Sinacor.UI.Bovespa.Movimento.View.SmartClient.ConsultaAssessores"
    ModulePlus="False"
    ModuleId="ORD">

    <Controls:SinacorExpanderContainer>
        <Grid.RowDefinitions>
            <RowDefinition	Height="Auto"/>
            <RowDefinition	Height="*"
							MinHeight="250"/>
        </Grid.RowDefinitions>

        <Controls:SinacorExpander x:Name="ExpPesquisa"
                                  Header="{DynamicResource Bovespa.Movimento.Label.Pesquisa}"
								  Grid.Row="0"
								  IsExpanded="True">
            <Grid>
                <Controls:SinacorLabel HorizontalAlignment="Left"
									   VerticalAlignment="Top"
									   Content="{DynamicResource Bovespa.Movimento.Label.Assessor}"
									   Width="200"
									   HorizontalContentAlignment="Left"/>
                <Controls:SinacorComboBox x:Name="CboAssessor"
                                          Width="510"
										  HorizontalAlignment="Left"
										  VerticalAlignment="Top"
										  Margin="0,21,0,0"
										  TabIndex="1"
                                          SelectedValue="{Binding FiltroConsultaAssessor.CodigoAssessor}"
                                          ItemsSource="{Binding ListaAssessores}"
                                          DisplayMemberPath="Nome"
                                          SelectedValuePath="Codigo"/>
                <Controls:SinacorLabel HorizontalAlignment="Left"
 				 					   VerticalAlignment="Top"
									   Content="{DynamicResource Bovespa.Movimento.Label.Agente}"
									   Width="200"
									   Margin="514,0,0,0"
									   HorizontalContentAlignment="Left"/>
                <Controls:SinacorComboBox x:Name="CboAgente"
                                          Width="426"
 										  HorizontalAlignment="Left"
				 						  VerticalAlignment="Top"
										  Margin="514,21,0,0"
										  TabIndex="2"
										  IsEnabled="False"
                                          SelectedValue="{Binding FiltroConsultaAssessor.CodigoAgente}"
                                          ItemsSource="{Binding ListaAgentes}"
                                          DisplayMemberPath="Nome"
                                          SelectedValuePath="Codigo"/>
                <Controls:SinacorLabel	VerticalAlignment="Top"
										Content="{DynamicResource Bovespa.Movimento.Label.Correspondente}"
										Width="200"
										Margin="0,46,0,0"
										HorizontalContentAlignment="Left"
										HorizontalAlignment="Left"/>
                <Controls:SinacorComboBox	x:Name="CboCorrespondente"
                                            Width="510"
											VerticalAlignment="Top"
											Margin="0,67,0,0"
											TabIndex="3"
											HorizontalAlignment="Left"
                                            SelectedValue="{Binding FiltroConsultaAssessor.CodigoCorrespondente}"
                                            ItemsSource="{Binding ListaCorrespondentes}"
                                            DisplayMemberPath="Nome"
                                            SelectedValuePath="Codigo"/>
                <Controls:SinacorButton	x:Name="BtnPesquisar"
                                        HorizontalAlignment="Left"
                           			    Content="{DynamicResource Bovespa.Movimento.Label.Pesquisar}"
                           			    Width="110"
                           			    Margin="716,67,0,0"
									    IsDefault="True"
									    TabIndex="4"
										VerticalAlignment="Top"/>
                <Controls:SinacorButton	x:Name="BtnNovaPesquisa"
                                        HorizontalAlignment="Left"
                           			    VerticalAlignment="Top"
                           			    Content="{DynamicResource Bovespa.Movimento.Label.NovaPesquisa}"
                           			    Width="110"
                           			    Margin="830,67,0,0"
									    TabIndex="5"/>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander Header="{DynamicResource Bovespa.Movimento.Label.ConsultaAssessores}"
		 						  Grid.Row="1"
								  Margin="0,4,0,0"
								  AllowExpand="False"
								  IsExpanded="True">
            <Grid>
                <Controls:SinacorDataGrid x:Name="DtgAssessores"
                                          ItemsSource="{Binding ListaMovimentoAssessores}">
                    <Controls:SinacorDataGrid.Columns>
                        <Controls:Column	Name="Data"
				        					Title="Bovespa.Movimento.Label.Data"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Center"
                                            DisplayMemberPath="DataMovimento"/>

                        <Controls:Column	Name="Cliente"
				        					Title="Bovespa.Movimento.Label.Cliente"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="CodigoCliente"/>

                        <Controls:Column	Name="TotalCorretagem"
				        					Title="Bovespa.Movimento.Label.TotalCorretagem"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="CorretagemTotal"/>

                        <Controls:Column	Name="Desconto"
				        					Title="Bovespa.Movimento.Label.Desconto"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="Desconto"/>

                        <Controls:Column	Name="ComissaoAssessor"
				        					Title="Bovespa.Movimento.Label.ComissaoAssessor"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="ComissaoAssessor"/>

                        <Controls:Column	Name="ComissaoAgente"
				        					Title="Bovespa.Movimento.Label.ComissaoAgente"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="ComissaoAgente"/>

                        <Controls:Column	Name="TotalNegocio"
				        					Title="Bovespa.Movimento.Label.TotalNegocio"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="TotalNegociacao"/>

                        <Controls:Column	Name="ValordoCorrespondente"
				        					Title="Bovespa.Movimento.Label.ValordoCorrespondente"
				        					IsRequired="False"
				        					AllowInsert="False"
				        					AllowUpdate="False" 
				        					HorizontalCellAlignment="Right"
                                            DisplayMemberPath="ValorCorrespondente"/>

                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
            </Grid>
        </Controls:SinacorExpander>
    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>
